using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace Nizm0.QOT.Library.UserControls
{
    public partial class ucShowTableInfo : UserControl
    {
        public ucShowTableInfo(Library.Objects.Table table)
        {
            InitializeComponent();
            textBox_CreateDate.Text = table.CreateDate.ToLongDateString();
            textBox_MinDate.Text = table.MinDate.ToLongDateString();
            textBox_MaxDate.Text = table.MaxDate.ToLongDateString();
            textBox_RefreshDate.Text = table.RefreshDate.ToLongDateString();
            textBox_Rows.Text = table.Count.ToString();
            foreach (string tmpcolumn in table.Columns)
            {
                listBox_Columns.Items.Add(tmpcolumn);
            }
        }
    }
}
